package com.cloudcentral.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;

/**
 * <p>
 * 系统用户权限关联表
 * </p>
 *
 * @author Administrator
 * @since 2023-10-27
 */
@Data
@SuperBuilder
@JsonSerialize
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("sys_role_auth")
@Schema(name = "RoleAuth", description = "系统用户权限关联表")
public class RoleAuth implements Serializable {

  @Schema(description = "ID")
  @TableId(type = IdType.AUTO)
  private Long id;

  @Schema(description = "角色ID")
  @TableField(keepGlobalFormat = true)
  private Long roleId;

  @Schema(description = "权限ID")
  @TableField(keepGlobalFormat = true)
  private Long authId;
}
